package cn.com.allunion.sms.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SmsbusinessExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SmsbusinessExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSmsBusinessIDIsNull() {
            addCriterion("smsBusinessID is null");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDIsNotNull() {
            addCriterion("smsBusinessID is not null");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDEqualTo(String value) {
            addCriterion("smsBusinessID =", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDNotEqualTo(String value) {
            addCriterion("smsBusinessID <>", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDGreaterThan(String value) {
            addCriterion("smsBusinessID >", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDGreaterThanOrEqualTo(String value) {
            addCriterion("smsBusinessID >=", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDLessThan(String value) {
            addCriterion("smsBusinessID <", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDLessThanOrEqualTo(String value) {
            addCriterion("smsBusinessID <=", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDLike(String value) {
            addCriterion("smsBusinessID like", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDNotLike(String value) {
            addCriterion("smsBusinessID not like", value, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDIn(List<String> values) {
            addCriterion("smsBusinessID in", values, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDNotIn(List<String> values) {
            addCriterion("smsBusinessID not in", values, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDBetween(String value1, String value2) {
            addCriterion("smsBusinessID between", value1, value2, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessIDNotBetween(String value1, String value2) {
            addCriterion("smsBusinessID not between", value1, value2, "smsBusinessID");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeIsNull() {
            addCriterion("businessCode is null");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeIsNotNull() {
            addCriterion("businessCode is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeEqualTo(String value) {
            addCriterion("businessCode =", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotEqualTo(String value) {
            addCriterion("businessCode <>", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeGreaterThan(String value) {
            addCriterion("businessCode >", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeGreaterThanOrEqualTo(String value) {
            addCriterion("businessCode >=", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeLessThan(String value) {
            addCriterion("businessCode <", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeLessThanOrEqualTo(String value) {
            addCriterion("businessCode <=", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeLike(String value) {
            addCriterion("businessCode like", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotLike(String value) {
            addCriterion("businessCode not like", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeIn(List<String> values) {
            addCriterion("businessCode in", values, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotIn(List<String> values) {
            addCriterion("businessCode not in", values, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeBetween(String value1, String value2) {
            addCriterion("businessCode between", value1, value2, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotBetween(String value1, String value2) {
            addCriterion("businessCode not between", value1, value2, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessStateIsNull() {
            addCriterion("businessState is null");
            return (Criteria) this;
        }

        public Criteria andBusinessStateIsNotNull() {
            addCriterion("businessState is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessStateEqualTo(String value) {
            addCriterion("businessState =", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateNotEqualTo(String value) {
            addCriterion("businessState <>", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateGreaterThan(String value) {
            addCriterion("businessState >", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateGreaterThanOrEqualTo(String value) {
            addCriterion("businessState >=", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateLessThan(String value) {
            addCriterion("businessState <", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateLessThanOrEqualTo(String value) {
            addCriterion("businessState <=", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateLike(String value) {
            addCriterion("businessState like", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateNotLike(String value) {
            addCriterion("businessState not like", value, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateIn(List<String> values) {
            addCriterion("businessState in", values, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateNotIn(List<String> values) {
            addCriterion("businessState not in", values, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateBetween(String value1, String value2) {
            addCriterion("businessState between", value1, value2, "businessState");
            return (Criteria) this;
        }

        public Criteria andBusinessStateNotBetween(String value1, String value2) {
            addCriterion("businessState not between", value1, value2, "businessState");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("createDate =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("createDate <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescIsNull() {
            addCriterion("smsBusinessDesc is null");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescIsNotNull() {
            addCriterion("smsBusinessDesc is not null");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescEqualTo(String value) {
            addCriterion("smsBusinessDesc =", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescNotEqualTo(String value) {
            addCriterion("smsBusinessDesc <>", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescGreaterThan(String value) {
            addCriterion("smsBusinessDesc >", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescGreaterThanOrEqualTo(String value) {
            addCriterion("smsBusinessDesc >=", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescLessThan(String value) {
            addCriterion("smsBusinessDesc <", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescLessThanOrEqualTo(String value) {
            addCriterion("smsBusinessDesc <=", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescLike(String value) {
            addCriterion("smsBusinessDesc like", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescNotLike(String value) {
            addCriterion("smsBusinessDesc not like", value, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescIn(List<String> values) {
            addCriterion("smsBusinessDesc in", values, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescNotIn(List<String> values) {
            addCriterion("smsBusinessDesc not in", values, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescBetween(String value1, String value2) {
            addCriterion("smsBusinessDesc between", value1, value2, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessDescNotBetween(String value1, String value2) {
            addCriterion("smsBusinessDesc not between", value1, value2, "smsBusinessDesc");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameIsNull() {
            addCriterion("smsBusinessName is null");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameIsNotNull() {
            addCriterion("smsBusinessName is not null");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameEqualTo(String value) {
            addCriterion("smsBusinessName =", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameNotEqualTo(String value) {
            addCriterion("smsBusinessName <>", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameGreaterThan(String value) {
            addCriterion("smsBusinessName >", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameGreaterThanOrEqualTo(String value) {
            addCriterion("smsBusinessName >=", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameLessThan(String value) {
            addCriterion("smsBusinessName <", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameLessThanOrEqualTo(String value) {
            addCriterion("smsBusinessName <=", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameLike(String value) {
            addCriterion("smsBusinessName like", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameNotLike(String value) {
            addCriterion("smsBusinessName not like", value, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameIn(List<String> values) {
            addCriterion("smsBusinessName in", values, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameNotIn(List<String> values) {
            addCriterion("smsBusinessName not in", values, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameBetween(String value1, String value2) {
            addCriterion("smsBusinessName between", value1, value2, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andSmsBusinessNameNotBetween(String value1, String value2) {
            addCriterion("smsBusinessName not between", value1, value2, "smsBusinessName");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("updateDate is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("updateDate is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("updateDate =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("updateDate <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("updateDate >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("updateDate >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("updateDate <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("updateDate <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("updateDate in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("updateDate not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("updateDate between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("updateDate not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumIsNull() {
            addCriterion("businessJoinNum is null");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumIsNotNull() {
            addCriterion("businessJoinNum is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumEqualTo(String value) {
            addCriterion("businessJoinNum =", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumNotEqualTo(String value) {
            addCriterion("businessJoinNum <>", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumGreaterThan(String value) {
            addCriterion("businessJoinNum >", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumGreaterThanOrEqualTo(String value) {
            addCriterion("businessJoinNum >=", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumLessThan(String value) {
            addCriterion("businessJoinNum <", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumLessThanOrEqualTo(String value) {
            addCriterion("businessJoinNum <=", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumLike(String value) {
            addCriterion("businessJoinNum like", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumNotLike(String value) {
            addCriterion("businessJoinNum not like", value, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumIn(List<String> values) {
            addCriterion("businessJoinNum in", values, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumNotIn(List<String> values) {
            addCriterion("businessJoinNum not in", values, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumBetween(String value1, String value2) {
            addCriterion("businessJoinNum between", value1, value2, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessJoinNumNotBetween(String value1, String value2) {
            addCriterion("businessJoinNum not between", value1, value2, "businessJoinNum");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureIsNull() {
            addCriterion("businessSignature is null");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureIsNotNull() {
            addCriterion("businessSignature is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureEqualTo(String value) {
            addCriterion("businessSignature =", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureNotEqualTo(String value) {
            addCriterion("businessSignature <>", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureGreaterThan(String value) {
            addCriterion("businessSignature >", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureGreaterThanOrEqualTo(String value) {
            addCriterion("businessSignature >=", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureLessThan(String value) {
            addCriterion("businessSignature <", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureLessThanOrEqualTo(String value) {
            addCriterion("businessSignature <=", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureLike(String value) {
            addCriterion("businessSignature like", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureNotLike(String value) {
            addCriterion("businessSignature not like", value, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureIn(List<String> values) {
            addCriterion("businessSignature in", values, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureNotIn(List<String> values) {
            addCriterion("businessSignature not in", values, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureBetween(String value1, String value2) {
            addCriterion("businessSignature between", value1, value2, "businessSignature");
            return (Criteria) this;
        }

        public Criteria andBusinessSignatureNotBetween(String value1, String value2) {
            addCriterion("businessSignature not between", value1, value2, "businessSignature");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}